package com.yy.app.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description
 * @Date 2025/10/11 上午11:26
 * @Author yanglin
 **/
public class OAuth2SafeUtils {

    public static Map<String, Object> safeAdditionalParameters(Map<String, Object> map) {
        return map != null ? map : new HashMap<>();
    }

    public static boolean safeContainsKey(Map<String, Object> map, String key) {
        return map != null && map.containsKey(key);
    }

    public static Object safeGet(Map<String, Object> map, String key) {
        return map != null ? map.get(key) : null;
    }
}
